#include<iostream>
using namespace std;
class Item
{
	int data;
public:
	const void setData(int value)
	{
		data = value;
	}
	int getData() const
	{
		return data;
	}
	const void printfData()
	{
		cout << data;
	}
};

int main()
{
	const Item i;
	i.setData(120);
	i.printfData();
	int x = i.getData();
	cout << x;
	system("pause");
	return 0;
}